package com.tyanxie.asd.model

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey

@Entity(tableName = "sugar_number")
data class SugarNumber(
    @PrimaryKey(autoGenerate = true) @ColumnInfo(name = "id") val id: Long?,
    @ColumnInfo(name = "create_time") val createTime: Long,
    @ColumnInfo(name = "type") val type: Int,
    @Ignore var sugarEntities: List<SugarEntity>?,
) {
    constructor(id: Long?, createTime: Long, type: Int) : this(id, createTime, type, null)
}
